package com.huangzhao.gulimall.auth.feign;

import com.huangzhao.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "gulimall-third-party", path = "/sms")
public interface ThirdPartFeignService {
    /**
     * 发送验证码
     *
     * @param phone
     * @param code
     * @return
     */
    @RequestMapping("/sendCode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
